public class Student {
    public String name;
    public String gender;
    public int age;
    public double score;
    private static String classRoom = "Bit306";  //public 改为 private

    public Student(String name, String gender, int age, double score) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.score = score;
    }
    //加这条这个静态成员方法
    public static String getClassRoom() {
        return classRoom;
    }
}